package org.example.myleet.p1001;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(new int[]{1,0}, solution.gridIllumination(5, Parser.parse("[[0,0],[4,4]]"), Parser.parse("[[1,1],[1,0]]"))));
        Assert.isTrue(Assert.isPass(new int[]{1,1}, solution.gridIllumination(5, Parser.parse("[[0,0],[4,4]]"), Parser.parse("[[1,1],[1,1]]"))));
        Assert.isTrue(Assert.isPass(new int[]{1,1,0}, solution.gridIllumination(5, Parser.parse("[[0,0],[0,4]]"), Parser.parse("[[0,4],[0,1],[1,4]]"))));
        Assert.isTrue(Assert.isPass(new int[]{1,0,1}, solution.gridIllumination(5, Parser.parse("[[0,0],[4,4],[2,3]]"), Parser.parse("[[1,1],[1,0],[3,2]]"))));
        Assert.isTrue(Assert.isPass(new int[]{1,0,1,1,0,1}, solution.gridIllumination(6, Parser.parse("[[2,5],[4,2],[0,3],[0,5],[1,4],[4,2],[3,3],[1,0]]"), Parser.parse("[[4,3],[3,1],[5,3],[0,5],[4,4],[3,3]]"))));
    }
}
